package de.hdm.articastle;

import de.hdm.articastle.framework.Game;
import de.hdm.articastle.framework.Graphics;
import de.hdm.articastle.framework.Screen;
import de.hdm.articastle.framework.Graphics.PixmapFormat;

public class LoadingScreen extends Screen {

	public LoadingScreen(Game game) {
		super(game);
	}

	@Override
	public void update(float deltaTime) {
		Graphics g = game.getGraphics();
		Assets.buttons = g.newPixmap("buttons.png", PixmapFormat.ARGB4444);
		Assets.castle = g.newPixmap("castle.png", PixmapFormat.ARGB4444);
		Assets.logo = g.newPixmap("logo.png", PixmapFormat.ARGB4444);
		Assets.soundEnabled = g.newPixmap("sound_on.png", PixmapFormat.ARGB4444);
		Assets.soundDisabled = g.newPixmap("sound_mute.png", PixmapFormat.ARGB4444);
		Assets.bullet = g.newPixmap("bullet.png", PixmapFormat.ARGB4444);
		Assets.arrow = g.newPixmap("arrow.png", PixmapFormat.ARGB4444);
		Settings.load(game.getFileIO());
		game.setScreen(new MainMenuScreen(game));
	}

	@Override
	public void present(float deltaTime) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void pause() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void resume() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void dispose() {
		// TODO Auto-generated method stub
		
	}

}
